package day3.lesson06

object Test {

  def main(args: Array[String]): Unit = {
   val array= Array[Boy](new Boy("吴彦祖",9),new Boy("李老师",999), new Boy("彭于晏",99))
    val sorted: Array[Boy] = array.sorted
    for( b <- sorted){
      println(b.name + " "+ b.faceValue)
    }
  }

}
